package com.yinNuo.collectWool.mobileApi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;
import java.io.Serializable;

/**
 * 登录操作日志表(LoginOperationLog)实体类
 *
 * @author makejava
 * @since 2021-12-12 10:54:05
 */
public class LoginOperationLog extends Model<LoginOperationLog> implements Serializable {
    private static final long serialVersionUID = 712691039066720504L;
    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 登录id
     */
    private Integer userId;
    /**
     * 登录时间
     */
    private Date loginTime;
    /**
     * 退出时间
     */
    private Date loginoutTime;
    /**
     * 操作日志
     */
    private String operation;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getLoginoutTime() {
        return loginoutTime;
    }

    public void setLoginoutTime(Date loginoutTime) {
        this.loginoutTime = loginoutTime;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LoginOperationLog{" +
                "id=" + id +
                ", userId=" + userId +
                ", loginTime=" + loginTime +
                ", loginoutTime=" + loginoutTime +
                ", operation='" + operation + '\'' +
                '}';
    }
}

